package com.lvyou.ctrls.mgr;

import com.lvyou.model.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


//@Controller
//@ResponseBody
@RestController
public class LoginAjaxCtrl {

    @RequestMapping("/doLogin")
//    @ResponseBody  //将java对象转换成json对象
    public Result doLogin(String phone,String password){
        System.out.println(phone+"---"+password);

        Result res=new Result();
        res.setCode(0);
        res.setMsg("登录成功！");
        return res;
    }
}
